package com.osp.model;

import java.util.Calendar;


public class Task {

	private Calendar date;
	private String description;
	private int elapsedMinutes;
	private String projectName;

	public Task(Calendar date, String description, int elapsedMinutes, String projectName) {
		super();
		this.date = date;
		this.description = description;
		this.elapsedMinutes = elapsedMinutes;
		this.projectName = projectName;
	}

	public Calendar getDate() {
		return date;
	}

	public void setDate(Calendar date) {
		this.date = date;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getElapsedMinutes() {
		return elapsedMinutes;
	}

	public void setElapsedMinutes(int elapsedMinutes) {
		this.elapsedMinutes = elapsedMinutes;
	}
	
	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	
	public String toString() {
		return "Task [" + date.get(Calendar.YEAR) + "-" + date.get(Calendar.MONTH) + "-" + date.get(Calendar.DAY_OF_MONTH) + " " + description + "  " + elapsedMinutes + " " + projectName + "]";
	}
	
}
